package com.zw.access.controller;


import com.zw.access.service.AccessReturnService;
import com.zw.commons.log.annotation.Log;
import com.zw.commons.log.enums.BusinessType;
import com.zw.object.result.Result;
import com.zw.object.vo.AccessRegisterVo;
import com.zw.object.vo.AccessReturnVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 未归用户表 前端控制器
 * </p>
 *
 * @author zw
 * @since 2023-03-12
 */
@Api(tags = "未归人员")
@RestController
@RequestMapping("/access/access-return")
public class AccessReturnController {
    @Autowired
    private AccessReturnService accessReturnService;

    @ApiOperation("未归人员")
    @PostMapping("/list")
    @Log(title = "未归人员",businessType = BusinessType.SELECT)
    public Result returnList(@Validated @RequestBody AccessReturnVo vo){
        return accessReturnService.returnPage(vo);
    }
}

